package com.gouaixin.bee.beeframework2.extra.floatView;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.ab.util.AbToastUtil;
import com.gouaixin.bee.beeframework2.R;

public class FloaView_MainActivity extends Activity {
    Context context=FloaView_MainActivity.this;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.floatview_main);
		
		ScreenUtils.initScreen(this);




		Button startFloatWindow = (Button) findViewById(R.id.start_float_window);
		startFloatWindow.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(FloaView_MainActivity.this, FloatWindowService.class);
				startService(intent);
				//finish();
			}
		});
		
		Button nextBtn=(Button) findViewById(R.id.next_activity);
		nextBtn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
                AbToastUtil.showToast(context,"跳转");
			}
		});

        Intent intent = new Intent(FloaView_MainActivity.this, FloatWindowService.class);
        startService(intent);
        finish();
	}
}
